
import java.util.Scanner;

        public class Work1 {
            public static void main(String[] args) {
                Scanner scanner = new Scanner(System.in);
                System.out.print("请输入英寸数: ");
                double inches = scanner.nextDouble();
                double centimeters = inches * 2.54;
                System.out.printf("%.2f 英寸等于 %.2f 厘米\n", inches, centimeters);
                scanner.close();
            }
        }
